package com.example.user3.demo.fragment;

import android.graphics.Color;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import com.example.user3.demo.R;
import com.example.user3.demo.TestActivity2;

public class TestFragment extends Fragment {

    public static TestFragment getUserInfoFragment() {
        TestFragment ItemFragment = new TestFragment();
        Bundle bundle = new Bundle();
        ItemFragment.setArguments(bundle);
        return ItemFragment;
    }
    LinearLayout layout;
    TextView resume;
    View view;
    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        view=  inflater.inflate(R.layout.activity_main,null);
        return view;
    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        view.findViewById(R.id.resume);
        view.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
               TestActivity2.lauchActivityAnim(getActivity());
            }
        });
    }
}
